﻿<UserControl x:Class="usrTotales"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:DV="clr-namespace:System.Windows.Controls.DataVisualization;assembly=System.Windows.Controls.DataVisualization.Toolkit"
             xmlns:DVC="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"             
             mc:Ignorable="d" 
             d:DesignHeight="382" d:DesignWidth="500">
    <Grid>
        <Grid.RowDefinitions >
            <RowDefinition Height="30"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions >
            <ColumnDefinition ></ColumnDefinition>
            <ColumnDefinition ></ColumnDefinition>
        </Grid.ColumnDefinitions>

        <Label Name="Label1" Content="Total palabras" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"></Label>

        <DVC:Chart Name="mcChart1"  Grid.Row="1" Grid.Column="0" Margin="15,0,15,0" BorderBrush="#00000000" Title="Porcentaje de acierto" LegendTitle="Porcentaje" Padding="0">
            <DVC:Chart.Series>
                <DVC:PieSeries  
                               IndependentValueBinding="{Binding Path=Key}"
                               DependentValueBinding="{Binding Path=Value}">
                </DVC:PieSeries>
            </DVC:Chart.Series>
        </DVC:Chart>

        <DVC:Chart Name="mcChart2" Grid.Row="1" Grid.Column="1" Margin="15,0,15,0" BorderBrush="#00000000" Title="Ronda en la que se acertó" LegendTitle="Ronda" Padding="0">
            <DVC:Chart.Series>
                <DVC:PieSeries  
                               IndependentValueBinding="{Binding Path=Key}"
                               DependentValueBinding="{Binding Path=Value}">
                </DVC:PieSeries>
            </DVC:Chart.Series>
        </DVC:Chart>

    </Grid>

</UserControl>
